package com.zn.controller;

import com.zn.model.RestResult;
import com.zn.pojo.UserRecord;
import com.zn.service.UserRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author zhaoning
 * @Date 2024/7/19
 */

@Slf4j
@RestController
public class ServiceController {

    @Autowired
    private UserRecordService userRecordService;

    @ResponseBody
    @PostMapping("/post")
    public RestResult<Boolean> postMessage(@RequestBody UserRecord userRecord) {
        System.out.println("ok");

        return RestResult.success(200, Boolean.TRUE);
    }
}
